#include "mainwindow.h"

#include <QApplication>
#include <QTranslator>
#include <QScreen>
#include <QList>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QList<QScreen *> screen_list= QGuiApplication::screens();
    if (screen_list.isEmpty()) {
        printf("Error: no screen found...");
        return -1;
    }
    QTranslator qTranslator;
    qTranslator.load("/usr/share/utils/huashui/l10n/huashui-zh_CN.qm");
    a.installTranslator(&qTranslator);
    MainWindow w;
    w.show();
    return a.exec();
}
